using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace UserManagementService.DTOs;

/// <summary>
/// 获取用户登录历史输入DTO
/// </summary>
public class GetUserLoginHistoryDto : PagedAndSortedResultRequestDto
{
    /// <summary>
    /// 用户ID
    /// </summary>
    public Guid? UserId { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }

    /// <summary>
    /// 登录结果筛选
    /// </summary>
    public bool? LoginSuccess { get; set; }

    /// <summary>
    /// IP地址筛选
    /// </summary>
    public string IpAddress { get; set; }

    /// <summary>
    /// 浏览器筛选
    /// </summary>
    public string Browser { get; set; }

    /// <summary>
    /// 操作系统筛选
    /// </summary>
    public string OperatingSystem { get; set; }
}